package com.free.helloworld;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;


/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>mail: ganshm@gmail.com</p>
 */


public class HelloWorldJFace extends ApplicationWindow {
  /**
   * HelloWorldJFace constructor
   */
  public HelloWorldJFace() {
		super(null);
	}

	protected Control createContents(Composite parent) {
		getShell().setText("hello world! Window");
		parent.setSize(400, 250);
		return parent;
	}

	public static void main(String[] args) {
		HelloWorldJFace helloWorldApp = new HelloWorldJFace();
		helloWorldApp.setBlockOnOpen(true);
		helloWorldApp.open();
		Display.getCurrent().dispose();
	}
} 


